from pydantic import BaseModel, Field
from decimal import Decimal
from typing import Optional, List

class CalculatorRequest(BaseModel):
    apartment_type: str = Field(..., max_length=10)
    area: Decimal = Field(..., gt=0)
    is_member: bool = False

class CalculatorResponse(BaseModel):
    apartment_type: str
    area: Decimal
    unit_price: Decimal
    base_cost: Decimal
    member_discount: Decimal
    final_cost: Decimal
    configuration_items: Optional[List[str]] = None

